home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Plus 2004 #6
/
Amiga Plus CD - 2004 - No. 06.iso
/
AmigaPlus
/
Begleitmaterial
/
50Tools
/
Grafik
/
PerfectPaint
/
rexx
/
Anim
/
DbFrame.rx
< prev
next >
Wrap
Text File
|
2003-01-14
|
1KB
|
87 lines
/* arexx Script */
options results
parse ARG Port b
ADDRESS value Port
pp_CountFrames
nb=result
if nb<2 then do
pp_Warn 'Make*an*Anim*first.'
EXIT
end
pp_GetCurrentBrush
B0=result
pp_GetWidth
w=result
pp_GetHeight
h=result
Md=1
s0=1
s1=nb
pp_DialogInit 250 97 "*Double*Each*Frame*" 3
pp_Slider 0 100 5 100 16 "Start*Frame*#" 1 1 nb s0
pp_Slider 1 100 25 100 16 "End*Frame*#" 1 1 nb s1
pp_Cycle 2 100 45 100 16 "Mode" 1 "Clone|Mix" 0
pp_Dialog
rc=result
IF rc=0 then DO
EXIT
END
pp_GetDialog 0
s0=result
pp_GetDialog 1
s1=result
pp_GetDialog 2
Md=result
IF Md=1 then DO
pp_FindEmptyBrush
Brush=result
if Brush=-1 then DO
pp_Warn "can't*find*empty|Brush."
EXIT
END
pp_SetBrush Brush
END
pp_GotoFrame s0
pp_BrushOpacity 50
Do i=s0 to s1
pp_AddFrames 1
IF result=0 then Do
pp_NextFrame
pp_NextFrame
IF Md=1 then DO
IF i<nb then DO
pp_PickBrush 0 0 W H 1
pp_PreviousFrame
pp_Plot w/2 h/2
pp_NextFrame
END
END
END
ELSE DO
i=s1+1
END
END
pp_BrushOpacity 100
pp_GotoFrame s0
IF Md=1 then DO
pp_FreeBrush
pp_SetBrush B0
END
EXIT